package com.swak.files;

import java.io.File;

import com.swak.utils.FileUtils;
import com.swak.utils.StringUtils;

public class FileName {

	public static void main(String[] args) {
		String nameString = "111111.xlsx";
		System.out.println(StringUtils.substringBeforeLast(nameString, "."));
		System.out.println(StringUtils.substringAfterLast(nameString, "."));
		
		System.out.println(StringUtils.substringAfterLast(nameString, File.separator));
		System.out.println(FileUtils.getFileName(nameString));
		System.out.println(FileUtils.getFileSuffix(nameString));
	}

}
